package br.usp.pcs.basys2.event;

import java.util.Calendar;

import br.usp.pcs.basys2.BasysProcess;
import br.usp.pcs.basys2.engine.Engine;

public class EndOfProcessEvent extends Event {

	
	public EndOfProcessEvent(BasysProcess process, Calendar dateOfArrival) {
		super(process, dateOfArrival);
	}

	@Override
	public void execute() {
		Engine.getInstance().getSystem().getProcessorManager().processFinished(this.getProcess());
	}

}
